<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
 */

require('includes/application_top.php');

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US);

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken)) 
{
    $error = false;

    $name = tep_db_prepare_input($HTTP_POST_VARS['name']);
    $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
    $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

    if (!tep_validate_email($email_address)) 
	{
        $error = true;
        $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
    }

    $actionRecorder = new actionRecorder('ar_contact_us', (tep_session_is_registered('customer_id') ? $customer_id : null), $name);
    if(!$actionRecorder->canPerform()) 
	{
        $error = true;
        $actionRecorder->record(false);
        $messageStack->add('contact', sprintf(ERROR_ACTION_RECORDER, (defined('MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES') ? (int) MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES : 15)));
    }

    if ($error == false) 
	{
        tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);
        $actionRecorder->record();
        tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
    }
}

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US));
require(DIR_WS_INCLUDES . 'template_top.php');
?>
<!--middle area start-->
<div class="middle-area">
  <div class="innermidbox fl">
    <div class="innermidbox-top"></div>
    <div class="innermidbox-mid">
      <div class="pdt5 pdl20 pdr20 pdb5 minheight527px">
        <div class="breadcrumbs"><a href="index.php">Home</a> > <span><?php echo HEADING_TITLE; ?></span></div>
        <div class="spacer10"></div>
        <div class="cms">
          <h1><?php echo HEADING_TITLE; ?></h1>
          <div class="hline"></div>
          <div class="spacer10"></div>
          <div class="fl mgl20">
            <div class="fl">
              <div class="fl mgl0">
                <div class="contactinfobox">
                  <div class="pdt5 pdl15 pdr20 pdb5">
                    <div class="contact-page-left">
                      <div class="main-form-left">
                        <div class="fl">
                          <div class="contact-left-new">
                            <div class="home-contact"></div>
                          </div>
                          <div class="contact-right fr">
                            <div class="home-text">
                              <h2>Swag On Fashion Pride Canada Inc.</h2>
                              <div style="float:left;"> 2489 OLINDA COURT,<br />
                                MISSISSAUGA ONTARIO L5C 4P5,<br />
                                CANADA.<br />
                              </div>
                              <div class="fr w350px">
                                <div class="contact-left-new">
                                  <div class="call-contact"></div>
                                </div>
                                <div class="contact-right">+1 905 268 9871</div>
                                <div class="spacer"></div>
                                <div class="contact-left-new">
                                  <div class="fax-contact"></div>
                                </div>
                                <div class="contact-right">+1 647 836 5401</div>
                                <div class="spacer"></div>
                                <div class="contact-left-new">
                                  <div class="mail-contact"></div>
                                </div>
                                <div class="contact-right"><a href="mailto:info@fashionpridecanada.com">info@fashionpridecanada.com</a></div>
                                <div class="spacer"></div>
                                <div class="contact-left-new">
                                  <div class="mail-contact"></div>
                                </div>
                                <div class="contact-right"><a href="mailto:dkhawaja4@gmail.com">dkhawaja4@gmail.com</a></div>
                              </div>
                            </div>
                          </div>
                          <div class="spacer"></div>
                        </div>
                      </div>
                      <div class="clear"></div>
                    </div>
                    <div class="spacer5"></div>
                  </div>
                </div>
                <div class="spacer10"></div>
                <div class="contactinfobox">
                  <div class="pdt5 pdl15 pdr20 pdb5">
                    <div class="contact-page-left">
                      <div class="main-form-left">
                        <div class="fl">
                          <div class="contact-left-new">
                            <div class="home-contact"></div>
                          </div>
                          <div class="contact-right fr">
                            <div class="home-text">
                              <h2>Fashion Pride Canada Inc.</h2>
                              <div style="float:left;"> 427 WALLENBERG CRES,<br />
                                MISSISSAUGA ONTARIO,<br />
                                L5B 3M5 CANADA.<br />
                              </div>
                              <div class="fr w350px">
								<strong>WAREHOUSE LOCATION</strong><br/>
                                7E-1201 BRITANNIA RD W,<br/>
                                MISSISSAUGA ONTARIO L5V 1N2.
                              </div>
                            </div>
                          </div>
                          <div class="spacer"></div>
                        </div>
                      </div>
                      <div class="clear"></div>
                    </div>
                    <div class="spacer5"></div>
                  </div>
                </div>
                <div class="spacer10"></div>
                <div class="contactinfobox">
                  <div class="pdt5 pdl15 pdr20 pdb5">
                    <div class="contact-page-left">
                      <div class="main-form-left">
                        <div class="fl">
                          <div class="contact-left-new">
                            <div class="home-contact"></div>
                          </div>
                          <div class="contact-right fr">
                            <div class="home-text">
                              <h2>SWAG ON HIP HOP URBAN CLOTHING</h2>
                              <div style="float:left;"> 3085 HURONTARIO STREET UNIT 4-5,<br />
                                MISSISSAUGA ONTARIO,<br />
                                L5A 4EA CANADA.<br />
                              </div>
                              <div class="fr w350px">
                                <div class="contact-left-new">
                                  <div class="mail-contact"></div>
                                </div>
                                <div class="contact-right"><a href="mailto:swagon2@gmail.com">swagon2@gmail.com</a></div>
                                <div class="spacer"></div>
                                <div class="contact-left-new">
                                  <div class="mail-contact"></div>
                                </div>
                                <div class="contact-right"><a href="http://www.swagon.ca">www.swagon.ca</a></div>
                              </div>
                            </div>
                          </div>
                          <div class="spacer"></div>
                        </div>
                      </div>
                      <div class="clear"></div>
                    </div>
                    <div class="spacer5"></div>
                  </div>
                </div>
              </div>
            </div>
            <div class="fr w600px mgl20">
              <?php
                    if ($messageStack->size('contact') > 0) {
                        echo $messageStack->output('contact');
                    }

                    if(isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success'))
					{
                        ?>
              <div class="contentContainer">
                <div class="contentText"> <?php echo TEXT_SUCCESS; ?> </div>
                <div style="float: right;"> <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?> </div>
              </div>
              <?php
                    }
					else 
					{
                        ?>
              <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send'), 'post', '', true); ?>
              <div class="contentContainer">
                <div class="contentText">
                  <div class="contact-left mgt15 w150px"><?php echo ENTRY_NAME; ?></div>
                  <div class="hinputbg fl"> <?php echo tep_draw_input_field('name','','class="hinput"'); ?> </div>
                  <div class="spacer5"></div>
                  <div class="contact-left mgt15 w150px"><?php echo ENTRY_EMAIL; ?></div>
                  <div class="hinputbg fl"> <?php echo tep_draw_input_field('email','','class="hinput"'); ?> </div>
                  <div class="spacer5"></div>
                  <div class="contact-left mgt15 w150px"><?php echo ENTRY_ENQUIRY; ?></div>
                  <div class="hinputbg-area fl"> <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15,'','class="hinput-area"'); ?> </div>
                  <div class="spacer5"></div>
                  <div class="contact-left mgt15 mgl10 w150px">&nbsp;</div>
                  <div> <?php echo tep_submit('','class="submit-btn"'); ?> </div>
                </div>
              </div>
              </form>
              <?php
                    }
                    ?>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="innermidbox-bottom"></div>
  </div>
</div>
<!--middle area end-->
<div class="spacer25"></div>
</div>
<?php
require(DIR_WS_INCLUDES . 'template_bottom.php');
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>